package com.sayice.design.lab5_2;

import com.sayice.design.util.XmlParse;
import org.xml.sax.SAXException;

import java.io.IOException;

/**
 * @author shubing
 */
public class Main {
    public static void main(String[] args) throws IOException, SAXException {
        XmlParse xmlParse = new XmlParse("dataSupplierConfig.xml");
        DataSupplier dataSupplier = (DataSupplier) xmlParse.objectOfTag("supplier");
        System.out.println(dataSupplier.getData("count"));
        System.out.println(dataSupplier.getData("count"));
    }
}
